﻿<Window x:Name="window" x:Class="AppToolkit.WPF.Services.UserMessageHandling.UI.FlyoutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:local="clr-namespace:AppToolkit.WPF.Services.UserMessageHandling.UI"
        Title="FlyoutWindow" ShowInTaskbar="False" WindowStyle="None"
        SizeToContent="WidthAndHeight">
    <DockPanel x:Name="LayoutRoot" LastChildFill="True">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="FlyoutStates">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:2">
                        <VisualTransition.GeneratedEasingFunction>
                            <CircleEase EasingMode="EaseInOut"/>
                        </VisualTransition.GeneratedEasingFunction>
                    </VisualTransition>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0">
                                <EasingDoubleKeyFrame.EasingFunction>
                                    <CircleEase EasingMode="EaseInOut"/>
                                </EasingDoubleKeyFrame.EasingFunction>
                            </EasingDoubleKeyFrame>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="expanded"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <local:MessageView x:Name="_messageView" />
    </DockPanel>
</Window>
